<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div id="nav" class="nav">
	<div class="menu_fixed">
		<div class="scroll-view">
			<div class="navbar nav_title" style="border: 0;">
				<img alt="" src="${initParam.url }/statics/images/logo.jpg"
					width="232px">
			</div>

			<div class="clearfix"></div>

			<div class="profile">
				<div id="userInfo">
					<h4>当前登陆：${user.userName }</h4>
					<span style="color: #3080B0;">邮箱地址：${user.email}</span></br> <span
						id="exit"><a href="${initParam.url }/cancel">注销</a></span>
				</div>
			</div>

			<div style="margin-top: 40px"></div>

			<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
				<div class="menu_section">
					<div
						style="color: #FFF; background-color: #97ADD9; padding: 5px 0px;"
						align="center">
						<h2>物业管理平台</h2>
					</div>
					<ul class="nav" style="margin: 0px;">
						<c:forEach var="lrrelation" items="${lrrelations }">
							<c:if test="${lrrelation.limit.id==1 }">
								<li style="border-top: 2px solid #D1DAE4;"><a
									data-toggle="collapse" data-parent="#accordion"
									href="#item-menu1"> 业主房屋管理 <span class="fa fa-chevron-down"></span></a>
									<ul id="item-menu1" class="collapse nav">
										<li><a href="${initParam.url }/main/houselist"><span
												class="fa  fa-chevron-right" style="float: left;"></span>业主房屋列表</a></li>
									</ul></li>
							</c:if>
							<c:if test="${lrrelation.limit.id==2 }">
								<li><a data-toggle="collapse" data-parent="#accordion"
									href="#item-menu2"> 投诉管理 <span class="fa fa-chevron-down"></span></a>
									<ul id="item-menu2" class="collapse nav">
										<li><a href="complaa?index=${user.id}"><span
												class="fa  fa-chevron-right" style="float: left;"></span>投诉列表</a></li>
									</ul></li>
							</c:if>
							<c:if test="${lrrelation.limit.id==3 }">
								<li><a data-toggle="collapse" data-parent="#accordion"
									href="#item-menu3"> 报修管理 <span class="fa fa-chevron-down"></span></a>
									<ul id="item-menu3" class="collapse nav">
										<li><a href="complaint?index=1"><span
												class="fa  fa-chevron-right" style="float: left;"></span>报修列表</a></li>
									</ul></li>
							</c:if>
							<c:if test="${lrrelation.limit.id==4 }">
								<li><a data-toggle="collapse" data-parent="#accordion"
									href="#item-menu4"> 小区通知 <span class="fa fa-chevron-down"></span></a>
									<ul id="item-menu4" class="collapse nav">
										<li><a href="${initParam.url }/main/informlist"><span
												class="fa  fa-chevron-right" style="float: left;"></span>查看通知</a></li>
										<li><a href="${initParam.url }/main/inform"><span
												class="fa  fa-chevron-right" style="float: left;"></span>发布通知</a></li>
									</ul></li>
							</c:if>
							<c:if test="${lrrelation.limit.id==5 }">
								<li><a data-toggle="collapse" data-parent="#accordion"
									href="#item-menu5"> 小区信息 <span class="fa fa-chevron-down"></span></a>
									<ul id="item-menu5" class="collapse nav">
										<li><a href="${initParam.url }/main/community"><span
												class="fa  fa-chevron-right" style="float: left;"></span>小区信息详情</a></li>
									</ul></li>
							</c:if>
							<c:if test="${lrrelation.limit.id==6 }">
								<li><a data-toggle="collapse" data-parent="#accordion"
									href="#item-menu6"> 编辑物管 <span class="fa fa-chevron-down"></span></a>
									<ul id="item-menu6" class="collapse nav">
										<li><a href="compilewrite"><span
												class="fa  fa-chevron-right" style="float: left;"></span>编辑物管信息</a></li>
									</ul></li>
							</c:if>
						</c:forEach>
					</ul>
				</div>
			</div>
		</div>
		<div style="height: 210px;"></div>
	</div>
	<div class="clear"></div>
</div>